#define _CRT_SECURE_NO_WARNINGS
#include"BinaryTree.h"

BTNode* CreatTree1()
{
	BTNode* n1 = BuyBTNode(1);
	BTNode* n2 = BuyBTNode(2);
	BTNode* n3 = BuyBTNode(3);
	BTNode* n4 = BuyBTNode(4);
	BTNode* n5 = BuyBTNode(5);
	BTNode* n6 = BuyBTNode(6);
	//BTNode* n7 = BuyBTNode1(7);
	//BTNode* n8 = BuyBTNode1(8);

	n1->left = n2;
	n1->right = n4;
	n2->left = n3;
	//n3->left = n7;
	//n7->right = n8;
	n4->right = n6;
	n4->left = n5;

	return n1;
}

void Test1()
{
	BTNode* root = CreatTree1();
	ProOrder(root);
	printf("\n");
	InOrder(root);
	printf("\n");
	PostOrder(root);
	printf("\n");

	LevelOrder(root);
}

int main()
{
	Test1();
	return 0;
}